﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PJ.Operation.WCF
{
    internal class ServiceBroker
    {
        
        public SaleInvoiceWCFClient SaleInvoiceWCFClient
        {
            get
            {
                if (_SaleInvoiceWCFClient == null)
                    _SaleInvoiceWCFClient = new SaleInvoiceWCFClient();
                return _SaleInvoiceWCFClient;
            }
            set
            {
                if (_SaleInvoiceWCFClient != null)
                    _SaleInvoiceWCFClient.Dispose();
                _SaleInvoiceWCFClient = value;
            }
        }

        public readonly static ServiceBroker Instance = new ServiceBroker();

        private SaleInvoiceWCFClient _SaleInvoiceWCFClient;
    }
}
